package com.aaa.mapper;

import com.aaa.entity.SubscriptionFans;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Bean
 * @since 2021-09-05
 */
public interface SubscriptionFansMapper extends BaseMapper<SubscriptionFans> {
    //添加关注
    Integer add(@Param("uid") Integer uid,@Param("id") Integer id);

    //查询通知  关注自己的人
    List<Map<String,Object>> seleatter(Integer uid);

    //发布订阅
    List<Map<String,Object>> lssue(Integer uid);

}
